package com.lpf.designpattern.decorator;

// 装饰角色。1、实现抽象构件角色。2、持有抽象构件角色的引用
public class Decorator implements Component {

    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void Operation() {
        component.Operation();
    }


}
